<script setup lang="tsx">
import { PropType, ref, nextTick } from 'vue'
import { Descriptions, DescriptionsSchema } from '@/components/Descriptions'
import { useI18n } from '@/hooks/web/useI18n'
const { t } = useI18n()

const props = defineProps({
  currentRow: {
    type: Object as PropType<any>,
    default: () => null
  },
  pageData: {
    type: Object as PropType<any>,
    default: () => null
  }
})
const pageData = ref(props.pageData)
nextTick(() => {
  console.log('pageData', pageData.value)
})
const detailSchema = ref<DescriptionsSchema[]>([
  {
    field: 'pageName',
    label: '页面名称'
  }
])
</script>

<template>
  <Descriptions :schema="detailSchema" :data="currentRow || {}" />
</template>
